<?php

namespace App\Containers\AppSection\Type\UI\API\Transformers;

use App\Containers\AppSection\Type\Models\Type;
use App\Ship\Parents\Transformers\Transformer;

class TypeTransformer extends Transformer
{
    public function transform(Type $t): array
    {
        return [
            'object' => $t->getResourceKey(),
            'include' => $this->getAvailableIncludes(),
            'key' => $t->key,
            'table' => $t->table,
            'value' => $t->value,
        ];
    }
}
